GBML manual / Paths

path_point_x

The x position of point i on a path (0 if i is out of range).

Syntax

path_point_x(p, i) -> real

Arguments

NameType
ppath
iint

Returns

real

Description

The x position of point i on a path (0 if i is out of range).

It is a place in the room, counted from the room's top-left corner, like an instance's own x.

Example

var first_x = path_point_x(path_doc_patrol, 0);

Reads the x position of path_doc_patrol's own first drawn control point.

See also: path_point_ypath_point_count